<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>热门</title>
    <link rel="stylesheet" type="text/css" href="../../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../../css/aui.css" />
    <link rel="stylesheet" href="../../css/main.css" />
    <script src="https://cdn.bootcss.com/vue/2.5.17-beta.0/vue.min.js"></script>
    <style>
        #hot{
    		background: #fff;
    	}
        .wrap-nav-box{
    		padding-top: 10px;
    	}
    	.nav-box{
    		height: 90px;
    		text-align: center;
    	}
		.nav-img{
			width: 45px;
			height: 45px;
			position: absolute;
			left: 50%;
			margin-left: -22.5px;
		}
		.nav-text{
			width: 100%;
			position: absolute;
			bottom: 0;
			display: block;
			font-size: 14px;
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
		}
		.aui-grid [class*=aui-col-]{
			padding: 9px 0;
		}
		.hot-one{
			margin-top: 9px;
			border-top: 9px solid #f1f1f1;
			border-bottom: 9px solid #f1f1f1;
		}
		.one-p{
			text-align: center;
			font-size: 14px;
			color: #646464;
		}
		.two-p{
			text-align: center;
			color: #000;
			font-size: 14px;
		}
		.two-p span{
			font-size: 30px;
			font-weight: bold;
		}
		.three-p{
			text-align: center;
			color: #ff5a00;
			font-size: 14px;
		}
		.three-p{
			height: 22px;
			margin-top: 10px;
		}
		.three-p span::before{
			display: block;
			float: left;
			width: 39px;
			height: 20px;
			content:"";
			background: url(../../image/xinxi.png) no-repeat center;
			background-size: 21px 20px;
		}
		.once-btn{
			padding: 22px 80px;
			text-align: center;
		}
		.once-btn button{
			width: 100%;
			height: 46px;
			border-radius: 23px;
			font-size: 17px;
			color: #000;
			background: -webkit-linear-gradient(left, #fbb215 , #f9e40f);
			box-shadow: 0 0 8px #ccc;
		}
    </style>
</head>

<body>
    <div id="hot" v-cloak>
        <section class="aui-grid wrap-nav-box">
            <div class="aui-row">
                <div class="aui-col-xs-3 nav-box" v-for="(item, index) in topSearch" :key="index" >
                    <img class="nav-img" :src="item.imgUrl" alt="">
                    <div class="nav-text">{{item.text}}</div>
                </div>
            </div>
        </section>
        <section class="hot-one">
            <div class="hot-title" style="border-bottom: none;">
                <i class="aui-iconfont aui-icon-like"></i>小额极速贷
            </div>
            <p class="one-p">最高可借</p>
            <p class="two-p"><span>10000</span>元</p>
            <p class="three-p"><span>本平台一律不向学生提供借贷</span></p>
            <div class="once-btn">
                <button>立即拿钱</button>
            </div>
        </section>
        <section>
            <div class="hot-title">
                <i class="aui-iconfont aui-icon-like"></i>热门推荐
            </div>
            <div class="list-box" v-for="(item, index) in dataList" :key="index">
                <div class="list-box-top">
                    <div class="list-box-top-left">
                        <img :src="item.imgUrl">
                        <div class="list-box-top-left-text">
                            <p>{{item.name}}</p>
                            <ul>
                                <li v-for="(items, indexp) in item.label" :key="index">{{items}}</li>
                            </ul>
                        </div>
                    </div>
                    <div class="list-box-top-right" @click="getMoney">点我拿钱</div>
                </div>
                <div class="list-box-bottom">
                    <ul>
                        <li class="list-one">
                            <span>额度(元)</span>
                            <p>{{item.lines}}</p>
                        </li>
                        <li class="list-two">
                            <span>成功率</span>
                            <p>{{item.successRate}}</p>
                        </li>
                        <li class="list-two">
                            <span>日费率</span>
                            <p>{{item.interest}}</p>
                        </li>
                    </ul>
                </div>
            </div>
        </section>
    </div>
</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript">
apiready = function() {
    api.setRefreshHeaderInfo({
        visible: true,
        // loadingImg: '../image/timg.gif', 
        bgColor: '#fafafa',
        textColor: '#323232',
        textDown: '下拉刷新...',
        textUp: '松开立即刷新...',
        showTime: true
    }, function(ret, err) {
        setTimeout('api.refreshHeaderLoadDone()', '500');
    })
};
var vm = new Vue({
    el: '#hot',
    data: {
        topSearch: [
            { id: '0', text: '今日新口子', imgUrl: '../../image/hot/hot1.png' },
            { id: '1', text: '5千以下', imgUrl: '../../image/hot/hot2.png' },
            { id: '2', text: '5千-4万', imgUrl: '../../image/hot/hot3.png' },
            { id: '3', text: '4万-100万', imgUrl: '../../image/hot/hot4.png' },
            { id: '4', text: '手机号借钱', imgUrl: '../../image/hot/hot5.png' },
            { id: '5', text: '600芝麻分借', imgUrl: '../../image/hot/hot6.png' },
            { id: '6', text: '不查征信', imgUrl: '../../image/hot/hot7.png' },
            { id: '7', text: '身份证下款', imgUrl: '../../image/hot/hot8.png' }
        ],
        dataList: [
        	{
                imgUrl: '../../image/list1.png',
                name: '369贷款',
                label: [
                    '流程简单',
                    '极速申请',
                    '超高通过'
                ],
                lines: '2000-5000',
                successRate: '99%',
                interest: '0.05%'
            },
            {
                imgUrl: '../../image/list1.png',
                name: '贷熊钱包',
                label: [
                    '上班族',
                    '下款快'
                ],
                lines: '500-10000',
                successRate: '97%',
                interest: '0.07%'
            },
            {
                imgUrl: '../../image/list1.png',
                name: '贷熊钱包',
                label: [
                    '足不出户',
                    '立即拿钱'
                ],
                lines: '5000-10000',
                successRate: '97%',
                interest: '0.06%'
            }
        ]
    },
    methods: {
        goMenu: function(item) {
            item.active = true
            this.activeId = item.id
            this.text = item.text
            api.openFrame({
                name: 'main',
                url: item.link,
                bounces: true,
                rect: {
                    x: 0,
                    y: headerPos.h,
                    w: 'auto',
                    h: mainPos.h - footerPos.h
                }
            });
        },
        getMoney: function() {
            $api.isDownload()
        }
    },
    mounted: function() {}
})
</script>

</html>